<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript">


</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<h5>
						网站列表
					</h5>
					
					
					<form id="sform" action="website_list.html" method="get" enctype="multipart/form-data">
						<table>
							<tr>
								<td height="40">
									<s:textfield  id="webNo" name="webNo" placeholder="网站编号" cssStyle="width:240px;"></s:textfield>
								</td>
							</tr>
							<tr>
								<td height="40">
									<s:textfield  id="webAddress" name="webAddress" placeholder="网站地址" cssStyle="width:240px;"></s:textfield>
								</td>
							</tr>
							<tr>
								<td height="40">
									<s:select id="webState" name="webState" list="#{'1':'有效','0':'无效'}" headerKey="" headerValue="网站状态"/>
								</td>
							</tr>
							<tr>
								<td height="40">
									<s:select id="webVstate" name="webVstate" list="#{'1':'有效','0':'无效'}" headerKey="" headerValue="审核状态"/>
								</td>
							</tr>
							<tr>
								<td height="40">		
									<input type="button"    class="btn btn-primary"  value="搜索" onclick="sform.submit();"/>
								</td>
							</tr>
						</table>
					</form>
					
					<ul class="tasks zebra-list">
						<s:iterator value="websiteList" id="show">
						<li>
							<span class="meta">
								<s:property value="#show.webNo"/> 有效天数剩余 : <s:property value="@utils.DateUtil@distanceDays(@utils.DateUtil@intervalDay(#show.webVdate,#show.webValidity))"/> (日)
							</span>
							<span class="title">
								<s:property value="#show.webAddress"/>
							</span>
							<span class="meta">
								可用状态 : <s:if test="#show.webState==1"><font color="green">可用</font></s:if><s:else><font color="red">禁用</font></s:else>
								|
								上传日期 : <s:text name="global.format.date"><s:param value="#show.webDate"/></s:text>
							</span>
							<span class="meta">
								审核状态 : <s:if test="#show.webVstate==1"><font color="green">已审</font></s:if><s:else><font color="red">未审</font></s:else>
								|
								审核日期 : <s:text name="global.format.date"><s:param value="#show.webVdate"/></s:text>
							</span>
							<span class="meta">
								备注 : <s:property value="#show.webDescript"/>
							</span>
							
						</li>
						</s:iterator>
					</ul>
					
					
					<%String paga="/"+session.getAttribute("access")+"/page.jsp"; %>
					<s:set name="pageInfo" value="pageInfo"></s:set> <jsp:include flush="true" page="<%=paga %>"></jsp:include>
					
					<div class="hero-unit" style="padding: 15px;font-size: 12px;line-height: 20px;">
						<p>
							1 . 新的网站不需要提交,只需要安装好接口,填入子账户号和密钥,一旦发生交易就会自动收集该网站.
						</p>
						<p>
							2 . 如果希望将不同网站的交易分配到不同的子账户管理,请更换接口安装包内的子账户号和密钥.
						</p>
						<p>
							3 . 网站在未审核状态时可以正常进行交易,只有审核后并且审核结果为不允许通过的网站才会被阻止交易.
						</p>
					</div>
					
				</div>
		</div>
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>